package ru.megazlo.basemvc.web.test.conf;

import org.openqa.selenium.htmlunit.HtmlUnitDriver;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.net.URI;
import java.net.URISyntaxException;

@Configuration
public class WebTestContext {

	@Bean
	public URI getSiteBase() throws URISyntaxException {
		return new URI("http://localhost:8080/web/");
	}

	/*@Bean(destroyMethod = "quit")
	public FirefoxDriver getDrv() {
		return new FirefoxDriver();
	}*/

	@Bean(destroyMethod = "quit")
	public HtmlUnitDriver getDrv() {
		return new HtmlUnitDriver(true);
	}
}
